<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method='xml' indent='yes' />
<xsl:template match='toptags'>
   <rdf:RDF xmlns="http://www.polytech.unice.fr/semanticfm#" 
			xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
			xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
		<Artist>
			<xsl:attribute name='rdf:about'>
				<xsl:value-of select="@artist"/>
			</xsl:attribute>
			<xsl:for-each select='tag'>
				<tagged>
					<RelatedTag>
						<tag>
							<Tag>
								<xsl:attribute name='rdf:ID'>
									<xsl:value-of select="name"/>
								</xsl:attribute>
								<tagName><xsl:value-of select="name"/></tagName>
							</Tag>
						</tag>
						<count><xsl:value-of select="count"/></count>
					</RelatedTag>
				</tagged>
			</xsl:for-each>
	</Artist>
	</rdf:RDF>

</xsl:template>
</xsl:stylesheet>
	